﻿using System.Data.SqlClient;

namespace SoftwareEngineering_Project
{
    public class ReservationType
    {
         private int TypeID;
        private string TypeName;

        public ReservationType(int TypeID, string TypeName)
        {
            this.TypeID = TypeID;
            this.TypeName = TypeName;
        }
        public ReservationType()
        {
        }
        public string getDescription(string sqlcommand)
        {
            string item = "";
            DBConnection DB = new DBConnection();
            //DB.cnTransact.Open();
            SqlDataReader myReader = DB.ExecuteCommandquery(sqlcommand);
            while (myReader.Read())
            {
                item = myReader[0].ToString();
            }
            return item;
        }
    }
}